load 2010_07_23_EL.txt_DL.mat

v = values.data(:,2);
t2 = values.data(:,1);
%co2 = v * 1.9;
co2 = v * 4;


load 2010_07_23_HL.txt_DL.mat

v = values.data(:,2);
t3 = values.data(:,1);

co3 = v;
%co3 = v;

npoints = 100;
t2 = t2(npoints-14:length(t2));
co2 = co2(npoints-14:length(co2));

t3 = t3(npoints:length(t3));
co3 = co3(npoints:length(co3));


h = figure ('Name', 'analysis');
hold on;
ylabel('Voltage');

color = get_a_new_color();
plot(t2, co2, 'color',color);
color = get_a_new_color();
plot(t3, co3, 'color',color);

legend ('CO2 concentration'); %legend should be added after plots
datetick('x','HH:MM:SS','keepticks')

h = figure ('Name', 'analysis');

npoints = length(co3)-100;
time_phase = 0;

dif = co3(1: npoints-time_phase) - co2(1+time_phase : npoints);
plot(dif);
legend ('co3 - co2'); %legend should be added after plots
